package com.starlink.model.dtomapper;

import com.starlink.model.domain.StarPaintRegisterDO;
import com.starlink.model.request.StarPaintRegisterRequest;
import com.starlink.model.vo.StarPaintRegisterVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface StarPaintRegisterDtoMapper {

    StarPaintRegisterDtoMapper INSTANCE = Mappers.getMapper(StarPaintRegisterDtoMapper.class);

    /**
    * DO to VO
    * @param starPaintRegisterDO
    * @return
    */
    StarPaintRegisterVO do2VO(StarPaintRegisterDO starPaintRegisterDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    StarPaintRegisterDO request2DO(StarPaintRegisterRequest request);
}
